package gwtmodule1.client.gui.shop;

import gwtmodule1.client.gui.PageShop;
import gwtmodule1.client.gui.shared.ShippingForm;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class PageDeliver extends VerticalPanel {

	private PageShop shop;

	public PageDeliver(PageShop shop) {
		super();
		this.shop = shop;
		add(new Title("Delivery and Payment Information"));
		add(createForm());
	}

	private Widget createForm() {
		ShippingForm table = new ShippingForm(false);
		table.addButton("Save and go to Confirmation", shop.getPageSwitch(shop
				.getPageConfirm()));
		return table;
	}

}
